package text;

public class TextPrefix extends TextValue{
    private TextComponent component;
    public TextPrefix(TextComponent component, String value) {
        super(value);
        this.component = component;
    }

    @Override
    public String getValue() {
        return this.value + component.getValue();
    }
}
